let { Schema, model, version } = require("mongoose");
let insuresSchema = new Schema({
    productsName: String,
    payType: String,
    suitableFor: String,
    renew: {
        type: Boolean,
        default: false
    },
    policy: Array,
    price: String,
    filename: String,
    typesId: {
        type: Schema.Types.ObjectId,
        ref: 'typesModels'
    }
}, { versionKey: false })
module.exports.insuresModel = model('insuresModel', insuresSchema, 'insures')